package ar.com.larreta.vista.client;

import gwtupload.client.IFileInput.FileInputType;
import gwtupload.client.IUploadStatus;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.FormPanel;

public class SingleUploader extends gwtupload.client.SingleUploader {

	public SingleUploader(FileInputType type, IUploadStatus status, Button button, FormPanel form) {
		super(type, status, button, form);
		internacionalizarTextos();
	}

	public SingleUploader(FileInputType type, IUploadStatus status, Button button) {
		super(type, status, button);
		internacionalizarTextos();
	}

	public SingleUploader(FileInputType type, IUploadStatus status) {
		super(type, status);
		internacionalizarTextos();
	}

	public SingleUploader(FileInputType type) {
		super(type);
		internacionalizarTextos();
	}

	public SingleUploader(IUploadStatus status, Button button) {
		super(status, button);
		internacionalizarTextos();
	}

	public SingleUploader(IUploadStatus status) {
		super(status);
		internacionalizarTextos();
	}

	public void internacionalizarTextos() {
		this.i18nStrs = Mensajes.getInstancia();
		this.getFileInput().setText(i18nStrs.uploaderBrowse());
	}

}
